package cn.hs.lyxf.feign;

import cn.hs.lyxf.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Package: cn.hs.lyxf.feign
 * @ClassName: SignedOrderFeign
 * @Date:2022/12/9 11:33
 * @Description:
 */
@FeignClient(value = "service-user") // 指定需要调用的服务的应用名称
public interface UserFeign {
    @RequestMapping(value = "/user/{id}", method = RequestMethod.GET)
    User get(@PathVariable("id") Long id);
}
